home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / AZTECW.DIR / 01702_Script_Workshops < prev    next >
Text File  |  1995-09-12  |  5KB  |  187 lines

  1. global gQuest, gBeenClicked, gHouseIsOpen
  2.  
  3. on AWorkshopsRollovers1
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(9) then
  7.       repeat while rollover(9)
  8.         AztecCursor
  9.         puppetsprite 15, true
  10.         set the locH of sprite 15 to 487
  11.         set the locV of sprite 15 to 285
  12.         updatestage
  13.         if the mousedown then
  14.           set GBeenClicked = 1
  15.         else
  16.           if gBeenClicked = 1 then
  17.             repeat while gBeenClicked = 1
  18.               AnimateLoopToFro 9, 473, 8, "SA220801.AIF", 1
  19.             end repeat
  20.           end if
  21.         end if
  22.       end repeat
  23.       set the locH of sprite 15 to 987
  24.       puppetsprite 15, false
  25.       updatestage
  26.     else
  27.       if rollover(8) then
  28.         repeat while rollover(8)
  29.           AztecCursor
  30.           if the mousedown then
  31.             set GBeenClicked = 1
  32.           else
  33.             if gBeenClicked = 1 then
  34.               repeat while gBeenClicked = 1
  35.                 puppetsprite 10, true
  36.                 set the locH of sprite 10 to 506
  37.                 set the locV of sprite 10 to 318
  38.                 updatestage
  39.                 AnimateLoopToFro 10, 525, 3, 0, 2
  40.               end repeat
  41.               set the locH of sprite 10 to 900
  42.               puppetsprite 10, false
  43.               updatestage
  44.             end if
  45.           end if
  46.         end repeat
  47.       else
  48.         if rollover(6) then
  49.           repeat while rollover(6)
  50.             AztecCursor
  51.             puppetsprite 16, true
  52.             set the locH of sprite 16 to 383
  53.             set the locV of sprite 16 to 263
  54.             updatestage
  55.             if the mousedown then
  56.               set GBeenClicked = 1
  57.             else
  58.               if gBeenClicked = 1 then
  59.                 repeat while gBeenClicked = 1
  60.                   AnimateLoopToFro 6, 468, 4, 0, 1
  61.                 end repeat
  62.               end if
  63.             end if
  64.           end repeat
  65.           set the locH of sprite 16 to 983
  66.           puppetsprite 16, false
  67.           updatestage
  68.         else
  69.           if rollover(11) then
  70.             ArrowCursor
  71.             repeat while rollover(11)
  72.               set the locH of sprite 12 to 424
  73.               set the locV of sprite 12 to 215
  74.               updatestage
  75.             end repeat
  76.           else
  77.             if rollover(13) then
  78.               ArrowCursor
  79.               repeat while rollover(13)
  80.                 set the locH of sprite 14 to 300
  81.                 set the locV of sprite 14 to 233
  82.                 updatestage
  83.               end repeat
  84.             else
  85.               if rollover(40) then
  86.                 HandCursor
  87.               else
  88.                 if rollover(41) then
  89.                   HandCursor
  90.                 else
  91.                   if rollover(42) then
  92.                     HandCursor
  93.                   else
  94.                     ArrowCursor
  95.                   end if
  96.                 end if
  97.               end if
  98.             end if
  99.           end if
  100.         end if
  101.       end if
  102.     end if
  103.   end if
  104.   RandomQuestion(gQuest)
  105. end
  106.  
  107. on AWorkshopsRollovers2
  108.   set gBeenClicked = 0
  109.   if (not(CheckClickedStatus(gQuest))) then
  110.     if rollover(13) then
  111.       repeat while rollover(13)
  112.         AztecCursor
  113.         puppetsprite 14, true
  114.         set the locH of sprite 14 to 407
  115.         set the locV of sprite 14 to 319
  116.         updatestage
  117.         if the mousedown then
  118.           set GBeenClicked = 1
  119.         else
  120.           if gBeenClicked = 1 then
  121.             repeat while gBeenClicked = 1
  122.               AnimateLoopFastest 13, 487, 4, "SA221601.AIF", 2
  123.             end repeat
  124.           end if
  125.         end if
  126.       end repeat
  127.       set the locH of sprite 14 to 907
  128.       puppetsprite 14, false
  129.       updatestage
  130.     else
  131.       if rollover(9) then
  132.         ArrowCursor
  133.         repeat while rollover(9)
  134.           set the locH of sprite 10 to 259
  135.           set the locV of sprite 10 to 306
  136.           updatestage
  137.         end repeat
  138.         set the locH of sprite 10 to 959
  139.         updatestage
  140.       else
  141.         if rollover(11) then
  142.           AztecCursor
  143.           repeat while rollover(11)
  144.             set the locH of sprite 12 to 271
  145.             set the locV of sprite 12 to 341
  146.             updatestage
  147.             if the mousedown then
  148.               puppetsound "SA221200.AIF"
  149.             end if
  150.           end repeat
  151.           set the locH of sprite 12 to 971
  152.           puppetsound 0
  153.           Updatestage
  154.         else
  155.           if rollover(15) then
  156.             ArrowCursor
  157.             repeat while rollover(15)
  158.               set the locH of sprite 16 to 360
  159.               set the locV of sprite 16 to 242
  160.               updatestage
  161.             end repeat
  162.           else
  163.             if rollover(39) then
  164.               HandCursor
  165.             else
  166.               if rollover(41) then
  167.                 HandCursor
  168.               else
  169.                 if rollover(42) then
  170.                   HandCursor
  171.                 else
  172.                   ArrowCursor
  173.                 end if
  174.               end if
  175.             end if
  176.           end if
  177.         end if
  178.       end if
  179.     end if
  180.   end if
  181.   RandomQuestion(gQuest)
  182. end
  183.  
  184.  
  185.  
  186.  
  187.